package com.wswy.wzcx.ui.weather

import android.os.Bundle
import com.wswy.wzcx.R
import com.wswy.wzcx.module.NewsController
import com.wswy.wzcx.module.base.CBaseFragment
import com.wswy.wzcx.ui.main.home.INewsView
import kotlinx.android.synthetic.main.fragment_weather_news.*

class WeatherNewsFragment : CBaseFragment(){

    override fun getContentLayoutId(): Int {
        return R.layout.fragment_weather_news
    }

    var currRv:((INewsView)->Unit?)?=null

    override fun onActivityCreated(savedInstanceState: Bundle?) {
        super.onActivityCreated(savedInstanceState)
        NewsController(tabLayout,indicator,vp_news) {
            currRv?.invoke(it)
        }.load(childFragmentManager)
    }

}